package com.example.liuwangshu.moonmvpsimple;

import android.app.Application;

import com.example.liuwangshu.moonmvpsimple.dagger.DaggerNetTaskComponent;
import com.example.liuwangshu.moonmvpsimple.dagger.NetTaskComponent;
import com.example.liuwangshu.moonmvpsimple.dagger.NetTaskModule;


/**
 * Created by Administrator on 2016/12/25 0025.
 */

public class MvpApplication extends Application {

    private NetTaskComponent netTaskComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        /*OkHttpFinalConfiguration.Builder builder = new OkHttpFinalConfiguration.Builder();
        OkHttpFinal.getInstance().init(builder.build());*/
        netTaskComponent = DaggerNetTaskComponent.builder().netTaskModule(new NetTaskModule()).build();
    }

    public NetTaskComponent getTaskRepositoryComponent() {
        return netTaskComponent;
    }
}
